part of 'view.dart';

final getData = ValueNotifier<KnowledgeBaseInfoEntity?>(null);
///获得知识库详情分页
Future<void> _fecthListDe(int? id) async {
  final resp = await HttpUtil().generateGetRequest<KnowledgeBaseInfoEntity>(
    '${Interface.mainBaseUrl}/admin-api/system/knowledge-base-information/get',
    queryParameters: {
      'id': id,
    },
  ).execute();
  if (resp.isSucceed) {
    final data = resp.data;
    if (data == null) return;
    getData.value = data;
  }
}
